package com.plian.system.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("sys_service_org_form_type")
@Api(value = "业务组织和formType关系表", tags = "业务组织和formType关系表")
public class ServiceOrgFormType {

    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("自增id")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("业务组织主表id")
    private Long baseServiceOrgId;

    @ApiModelProperty("模块名称")
    private String name;

    @ApiModelProperty("类型  1代表一级目录 2代表二级 3代表3级")
    private Integer type;

    @ApiModelProperty("单据类型")
    private Integer formType;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("父节点id")
    private Long parentId;
}
